import request from '@/utils/request';

export interface MattersParams {
  page: number;
  size: number;
  declarationMethod: string; //方式
  declarationObject: string; //对象
  matterStatus: string; //状态
  orgId: number; //部门
  title: string;
}

//首页-政策申报-数据统计
export async function getMatterStatistics(params: any): Promise<any> {
  return request.get(`/portal/getMatterStatistics`, {
    params,
  });
}

//首页-政策申报-申报列表
export async function findPolicyInfoMatterByQueryCondition(data: MattersParams): Promise<any> {
  return request.post(`/portal/findPolicyInfoMatterByQueryCondition`, {
    data,
  });
}

//首页-政策申报-查询部门
export async function findPolicyOrgsByOrgType(params: any): Promise<any> {
  return request.get(`/portal/findPolicyOrgsByOrgType`, {
    params,
  });
}
